﻿@model List<DLULearningNetworkModel.Friend>
<p style="margin-bottom:15px;padding: 5px 3px; border-left: 18px solid green; border: 1px solid green;
    text-align: center;">
    <a href="/Friend/FriendRequest/" style="color: Green; font-weight: bold;">Chờ kết bạn</a></p>
<div class="vscrollbar">
    <div class="scrollbar">
        <div class="track">
            <div class="thumb">
                <div class="end">
                </div>
            </div>
        </div>
    </div>
    <div class="viewport">
        <div class="overview">
            @if (Model.Count != 0)
            {
                <ul style="padding-bottom: 5px; padding-left: 10px;">
                    @foreach (DLULearningNetworkModel.Friend fr in Model) {
                    <li style="clear: both; padding-top: 5px;">
                        <div style="float: left; width: 45px;">
                            <a href="/UserPage/UserHome/@fr.AccountReference.Value.Nickname_s"><img src="@DLULearningNetwork.Libs.StringHelper.GetImageUrl(fr.AccountReference.Value.Avatar_s, 2)" style="width: 40px; height: 40px; float: left;
                            padding-right: 3px;" /></a>
                        </div>
                        <div style="float: left; width: 140px;">
                            <span style="display: table-row;">@fr.AccountReference.Value.LastName_s @fr.AccountReference.Value.FirstName_s 
                            </span>
                            <a href="#" style="color:Green;" onclick="return BoxAcceptFriendRelation('@fr.FriendID_u',this)">Đồng ý</a>
                            
                        </div>
                    </li>
                    }
                </ul>
        
            }
            else
            { 
                <p name="noRequest" style="padding-left:10px;">Chưa có yêu cầu kết bạn nào</p>
            }
        </div>
    </div>
</div>

